package com.github.crush0.myblog.dao;

import com.github.crush0.myblog.entity.ArticleSort;
import com.github.crush0.myblog.entity.ArticleSortExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface ArticleSortMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ArticleSort record);

    int insertSelective(ArticleSort record);

    List<ArticleSort> selectByExample(ArticleSortExample example);

    @Select("select * from tbl_article_sort where sort_id = #id")
    List<ArticleSort> selectBySortId(@Param("id") Long id);

    ArticleSort selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ArticleSort record);

    int updateByPrimaryKey(ArticleSort record);
}